export function rowMerge(tableData,spanArr){
    console.log("开始");
    let contactDot = 0;
    tableData.forEach((item,index) => {
        if(index===0){
            spanArr.push(1)
        }else{
            if(item.city === tableData[index-1].city){
                spanArr[contactDot] += 1;
                spanArr.push(0)
            }else{
                contactDot = index
                spanArr.push(1)
            }
        }
    })
  }

  export function rowMerge1(tableData,spanArr, type){
    console.log("开始1");
    let contactDot = 0;
    let flag = false
    tableData.forEach((item,index) => {
        if(index===0){
            spanArr.push(1)
        }else{
            if(item[type] === tableData[index-1][type]){
                spanArr[contactDot] += 1;
                spanArr.push(0)
            }else{
                contactDot = index
                spanArr.push(1)
            }
        }
    })
  }